package service

import (
	authApi "mldong/api/auth"
	userApi "mldong/api/user"
	"reflect"
)

type IUserService interface {
	Save(req *userApi.SaveReq) (res bool, err error)
	Update(req *userApi.UpdateReq) (res bool, err error)
	Remove(ids []string) (res bool, err error)
	Detail(id string) (res userApi.UserVO, err error)
	Page(req *userApi.PageReq) (res userApi.UserPageVO, err error)
	// 重置密码
	ResetPassword(ids []string) (res bool, err error)
	// 登录
	Login(req *authApi.LoginReq) (res authApi.LoginVO, err error)
	// 获取某个用户的权限标识
	PermCode(userId string) (res []string, err error)
}

var UserServiceType = reflect.TypeOf((*IUserService)(nil)).Elem()
